import redis.clients.jedis.Jedis;
import redis.clients.jedis.Pipeline;

/**
 * @description:
 * @author: asd
 * @time: 2022/10/17 23:21
 */
public class RedisPipLine {
    public static void main(String[] args) {
        Jedis jedis = new Jedis("192.168.147.64",6379);
        System.out.println(jedis.ping());
        Pipeline pipeline = jedis.pipelined();
        for(int i = 0; i<100;i++){
                pipeline.rpush("piplinedList",i+"");
            }
            pipeline.sync();
            pipeline.close();
            jedis.close();
        }
}
